﻿#include <iostream>

using namespace std;


class Component
{
public:
	Component() { cout << "ctor one" << endl; }

	Component(const char * cstr) { cout << "ctor " << cstr << endl; }
	~Component() { cout << __FUNCTION__ << endl; }

};


class Containter
{
public:
	Containter() {}
	Containter(const char * cstr) :m_part(cstr) {}
	~Containter() { cout << __FUNCTION__ << endl; }
private:
	Component m_part;
};

int main()
{
	{
		Containter con;
		Containter con1("Hello");
	}
	return 0;
}
